package com.volcreate.exception_collection.no10;

import java.util.ArrayList;
import java.util.Scanner;

/**
 * @author zxc
 * @date 2020/10/6
 */
public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int i = scanner.nextInt();
        ArrayList<ArrayList<Double>> arrayLists = new ArrayList<>();

        int n = i;
        while (i-- > 0) {
            ArrayList<Double> list = new ArrayList<>();
            for (int i1 = 0; i1 < n + 1; i1++) {
                double v = scanner.nextDouble();
                list.add(v);
            }
            arrayLists.add(list);
        }
        System.out.println(arrayLists);
        for (ArrayList<Double> arrayList : arrayLists) {
            for (int i1 = 0; i1 < arrayList.size(); i1++) {
                if (i1 == arrayList.size() - 2) {
                    System.out.print(arrayList.get(i1) + " = ");
                } else if (i1 == arrayList.size() - 1) {
                    System.out.print(arrayList.get(i1));
                } else {
                    System.out.print(arrayList.get(i1) + ", ");
                }
            }
            System.out.println();
        }
    }
}

